package com.quanyan.authority.serviceFacade;

import com.quanyan.api.APIResponse;
import com.quanyan.authority.service.RoleService;
import com.quanyan.comment.reqeust.ReqRoleParams;
import com.quanyan.comment.response.RespAuthority;
import com.quanyan.comment.response.RespSystemRole;
import com.quanyan.comment.serviceFacade.RoleServiceFacade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/12.
 */
@Service("roleServiceFacade")
public class RoleServiceFacadeImpl implements RoleServiceFacade {


    @Autowired
    private RoleService roleService;

    @Override
    public APIResponse<List<RespSystemRole>> getRoleBySystemCode(String systemCode) {
        return roleService.getRoleBySystemCode(systemCode);
    }

    @Override
    public APIResponse<List<RespAuthority>> getAuthorityByRoleCode(String roleCode) {
        return roleService.getAuthorityByRoleCode(roleCode);
    }

    @Override
    public APIResponse<Boolean> isAuthorityByRole(ReqRoleParams reqRoleParams) {
        return null;
    }
}
